package com.example.androideventdistribution

import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.example.androideventdistribution.databinding.ActivityMainBinding
import com.example.androideventdistribution.page1.RecyclerView2ScrollActivity

class MainActivity : AppCompatActivity() {
    lateinit var binding: ActivityMainBinding
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = ActivityMainBinding.inflate(layoutInflater)
        setContentView(binding.root)
        binding.apply {
            mBtn1.setOnClickListener {
                startActivity(Intent(this@MainActivity, RecyclerView2ScrollActivity::class.java))
            }
        }
    }
}